﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class UserControlSupport_SlidingNavigation : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {   
    }

    public String[] GetType()
    {
        ShoppingDataContext spdc = new ShoppingDataContext();
        var query = from p in spdc.TYPEs
                    select p.type1;
        String[] result = new String[20];
        int count = 0;
        foreach (var i in query)
        {
            result[count] = i.ToString();
            count++;
        }
        return result;
    }

    public String[] GetUsefor()
    {
        ShoppingDataContext spdc = new ShoppingDataContext();
        var query = from p in spdc.USEFORs
                    select p.usefor1;
        String[] result = new String[20];
        int count = 0;
        foreach (var i in query)
        {
            result[count] = i.ToString();
            count++;
        }
        return result;
    }

    public String[] GetGender()
    {
        ShoppingDataContext spdc = new ShoppingDataContext();
        var query = from p in spdc.GENDERs
                    select p.gender1;
        String[] result = new String[20];
        int count = 0;
        foreach (var i in query)
        {
            result[count] = i.ToString();
            count++;
        }
        return result;
    }
}
